package com.zr0726.news.service;

import com.zr0726.news.po.News;
import com.zr0726.news.vo.NewsQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface NewsService {

    Page<News> listNew(Pageable pageable, NewsQuery newsQuery);

    News saveNews(News news);

    News getNews(Long id);

    News updateNews(Long id, News news);
}
